package de.in.michael.unnamed.screen;

import de.in.michael.unnamed.InputHandler;
import de.in.michael.unnamed.gfx.Bitmap;

public class GameScreen extends Screen
{
	private Bitmap bitmap = new Bitmap(16, 16);

	public void tick(InputHandler inputHandler)
	{
		super.tick(inputHandler);

		if (inputHandler.escape.clicked)
		{
			setScreen(new TitleScreen());
		}
	}

	public void render(Bitmap b)
	{
		super.render(b);

		b.draw(bitmap, (SCREEN_WIDTH - 16) / 2, (SCREEN_HEIGHT - 16) / 2);
	}

	public void remove()
	{
		super.remove();
	}
}
